package com.bank.repository;

import com.bank.entity.Mail;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface MailRepo extends CustomerRepo<Mail, Integer> {

    @Query("SELECT m FROM  Mail m WHERE m.receivePerson=?1")
    List<Mail> findMailListByReceivePerson(String receivePerson);
}
